]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Close menu when clicking outside of the menu
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 16 Feb 2013 18:51:46 +0000 (19:51 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Sat, 16 Feb 2013 18:55:59 +0000 (19:55 +0100)
js/ui/messageTray.js

index 512cb53adc4118c531b864fe61481b4fbe7dff2c..4c8c13325cfc0d8b43b46ff4ac303237eaa69c58 100644 (file)
@@ -1749,6 +1749,8 @@ const MessageTray = new Lang.Class({
             let button = action.get_button();
             if (button == 3)
                 this._openContextMenu();
+            if (button == 1 && this._contextMenu.isOpen)
+                this._grabHelper.ungrab({ actor: this._contextMenu.actor });
         }));
 
         clickAction.connect('long-press', Lang.bind(this, function(action, actor, state) {